package com.feibo.controller;

import com.feibo.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * java类简单作用描述
 *
 * @ProjectName: feibo
 * @Package: com.feibo.controller
 * @ClassName:
 * @Description:
 * @Author: zhenglinyong
 * @CreateDate: 2018/12/18 9:49 PM
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 **/
@RestController   // @RestController = @Controller + @ResponseBody
public class UserController {

    @RequestMapping("/getUserInfo")
    public User getUserInfo() {
        User user = new User("kingsleo", "11@qq.com", "dddd");
        return user;
    }
}
